package com.donleo.amqp;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author liangd
 * .@EnableRabbit 开启rabbitMq的注解功能
 * 自动配置
 * 1、开启了RabbitAutoConfiguration配置
 * 2、自动配置了连接工厂ConnectionFactory
 * 3、RabbitProperties 封装了rabbitmq对象
 * 4、RabbitTemplate 给RabbitMQ发送和接收消息
 * 5、AmqpAdmin RabbitMQ系统功能管理组件
 * 6、@EnableRabbit  +  @RabbitListener 监听消息队列的内容
 */
@SpringBootApplication
@EnableRabbit
public class AmqpApplication {

    public static void main(String[] args) {
        SpringApplication.run(AmqpApplication.class, args);
    }

}
